/* 基础样式 */
:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --accent: #f97316;
    --background: #1e293b;
    --background-light: #334155;
    --text: #f8fafc;
    --text-muted: #e2e8f0;
    --card-bg: rgba(51, 65, 85, 0.8);
    --card-bg-light: rgba(71, 85, 105, 0.7);
    --link-color: #93c5fd; /* 新增超链接颜色 */
    --link-hover: #bfdbfe; /* 新增超链接悬停颜色 */
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.15s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全局超链接样式 */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.logo p {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    border-radius: 3px;
    transition: all var(--transition-medium);
}

/* 侧边导航 */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 900;
}

.side-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.side-dot:hover, .side-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* 主内容区 */
.section {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* 封面页样式 */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--background);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(49, 130, 206, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* 自我介绍模块样式 */
.author-intro {
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.author-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
    transition: all var(--transition-medium);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(237, 137, 54, 0.3);
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-info {
    flex: 1;
    text-align: left;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.author-title {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.author-tags .tag {
    background: rgba(49, 130, 206, 0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(49, 130, 206, 0.3);
    transition: all var(--transition-fast);
}

.author-tags .tag:hover {
    background: rgba(49, 130, 206, 0.3);
    transform: translateY(-2px);
}

.author-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.author-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    color: var(--text);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* AI Agent 与 Function Call/Tools 概念样式 */
#ai-concepts {
    background: linear-gradient(135deg, var(--background), var(--background-light));
    position: relative;
    overflow: hidden;
}

#ai-concepts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.concept-block {
    padding: 40px 30px;
    background: linear-gradient(145deg, var(--card-bg-light), var(--card-bg));
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.concept-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light), var(--accent));
    opacity: 0.8;
}

.concept-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.concept-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.concept-block a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.4);
    transition: all var(--transition-fast);
}

.concept-block a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 概念介绍样式 */
.concept-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.concept-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.concept-intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 概念块标题样式 */
.concept-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.concept-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.5;
    margin-right: 15px;
    line-height: 1;
}

.concept-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* 特性列表样式 */
.concept-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-item {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(245, 158, 11, 0.2));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* MCP定义部分样式 */




/* 卡片翻转动画 */
#definition {
    background: linear-gradient(to bottom, var(--background-light), rgba(37, 99, 235, 0.3));
    position: relative;
    overflow: hidden;
}

#definition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.15), transparent 60%);
    z-index: 0;
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.9;
        background-position: 100% 100%;
    }
    100% {
        opacity: 0.7;
        background-position: 0% 0%;
    }
}

#definition .container {
    position: relative;
    z-index: 1;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.card-wrapper:hover .flip-card {
    transform: translateY(-10px);
}

.card-wrapper:hover .card-image {
    transform: translateY(5px) scale(1.03);
}

.image-container {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    position: relative;
    padding: 10px;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(96, 165, 250, 0.1), transparent);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    opacity: 0.6;
}

.card-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1), 0 0 15px rgba(96, 165, 250, 0.08);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    filter: brightness(1.05) contrast(0.92) saturate(0.95);
    opacity: 0.9;
}

.card-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15), 0 0 20px rgba(96, 165, 250, 0.15);
    border-color: var(--primary-light);
    filter: brightness(1.08) contrast(0.95) saturate(1);
    opacity: 1;
}

.flip-card {
    width: 320px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--card-bg-light), rgba(37, 99, 235, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(96, 165, 250, 0.1);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), var(--card-bg-light));
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(96, 165, 250, 0.1);
    overflow: visible;
}

.flip-card-back p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(96, 165, 250, 0.2));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hint, .back-hint {
    margin-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* MCP核心机制样式 */
#mechanism {
    background: linear-gradient(to bottom, var(--primary), var(--background));
}

.mechanism-block {
    margin-bottom: 80px;
}

.mechanism-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.mechanism-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.mechanism-content.reverse {
    flex-direction: row-reverse;
}

.mechanism-text {
    flex: 1;
    min-width: 300px;
}

.mechanism-text.full-width {
    flex: 1 1 100%;
}

.mechanism-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column; /* 让图片垂直堆叠 */
    align-items: center; /* 水平居中图片 */
    justify-content: center;
}

.mechanism-image img {
    max-width: 100%;
    height: auto; /* 保持图片纵横比 */
    border-radius: 10px;
    display: block; /* 确保图片是块级元素，以便外边距生效 */
}

/* 图片阴影和圆角 */
.img-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px; /* 为所有带阴影的图片添加一些底部外边距 */
}

.additional-image {
    margin-bottom: 20px; /* 为新添加的图片设置特定的底部外边距 */
}

.architecture-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.architecture-box {
    flex: 1;
    min-width: 200px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-light);
}

.architecture-box h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.workflow-steps {
    margin-top: 30px;
}

.workflow-step {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.workflow-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
}

.workflow-step h4 {
    color: var(--primary-light);
    margin-bottom: 5px;
}

.deployment-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.deployment-mode {
    flex: 1;
    min-width: 200px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    transition: transform var(--transition-medium);
}

.deployment-mode:hover {
    transform: translateY(-5px);
}

.mode-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: var(--accent);
}

.deployment-mode h4 {
    color: var(--text);
    margin-bottom: 10px;
}

/* 开发者工具生态样式 */
#tools {
    background: linear-gradient(to bottom, var(--background), var(--primary));
}

.tools-block {
    margin-bottom: 80px;
}

.tools-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.tools-intro {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ide-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.ide-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.ide-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.ide-header h4 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.ide-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 44px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.other-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tool-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border-top: 3px solid var(--primary-light);
}

.tool-item h4 {
    color: var(--text);
    margin-bottom: 10px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.workflow-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    transition: transform var(--transition-medium);
}

.workflow-item:hover {
    transform: translateY(-5px);
}

.workflow-item h4 {
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ecosystem-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.ecosystem-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-medium);
}

.ecosystem-card:hover {
    transform: translateY(-5px);
}

.eco-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.ecosystem-card h4 {
    color: var(--text);
    margin-bottom: 15px;
}

/* 实战动手样式 */
#practical {
    background: linear-gradient(to bottom, var(--primary), var(--background-light));
}

.practical-block {
    margin-bottom: 80px;
}

.practical-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.practical-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.practical-text {
    flex: 1;
    min-width: 300px;
}

.practical-intro {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.steps-container {
    margin-top: 30px;
}

.step-item {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-light);
}

.step-item h4 {
    color: var(--primary-light);
    margin-bottom: 5px;
}

.code-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.code-header {
    display: flex;
    align-items: center;
    background-color: #252526;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #3f3f3f;
}

.code-dots {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: monospace;
}

.code-block {
    margin: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-height: 500px;
    overflow-y: auto;
}

.scenarios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.scenario-card {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--primary), var(--background-light));
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scenario-card h4 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.scenario-list {
    list-style: none;
}

.scenario-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.scenario-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tips-box {
    background: linear-gradient(135deg, var(--card-bg), rgba(59, 130, 246, 0.2));
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tips-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tips-header svg {
    color: var(--accent);
    margin-right: 10px;
}

.tips-header h4 {
    color: var(--text);
    font-size: 1.3rem;
}

.tips-list {
    list-style: none;
    margin-top: 15px;
}

.tips-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tips-list a {
    color: var(--link-color);
    font-weight: 500;
    border-bottom: 1px dotted rgba(147, 197, 253, 0.5);
    padding-bottom: 1px;
    text-decoration: none;
}

.tips-list a:hover {
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
    text-decoration: none;
}

/* 页脚样式 */
footer {
    background-color: var(--background);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .mechanism-content {
        flex-direction: column;
    }

    .mechanism-image, .mechanism-text {
        width: 100%;
    }

    .mechanism-image {
        margin-top: 30px;
        order: 2;
    }

    .mechanism-content.reverse .mechanism-image {
        order: 2;
    }

    .mechanism-content.reverse .mechanism-text {
        order: 1;
    }
    
    .concept-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .concept-header {
        flex-wrap: wrap;
    }
    
    .concept-number {
        font-size: 2rem;
    }
    
    .concept-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .side-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .mechanism-content, .practical-content {
        flex-direction: column;
    }
    
    .mechanism-content.reverse {
        flex-direction: column;
    }
    
    .concept-features {
        grid-template-columns: 1fr;
    }
    
    .concept-intro-title {
        font-size: 1.8rem;
    }
    
    .concept-icon {
        width: 70px;
        height: 70px;
    }
    
    .concept-block {
        padding: 30px 20px;
    }
    
    .concept-number {
        font-size: 1.8rem;
        margin-right: 10px;
    }
    
    .concept-header h3 {
        font-size: 1.2rem;
    }
    
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
    }
    
    .author-avatar {
        margin-bottom: 20px;
    }
    
    .author-tags {
        justify-content: center;
    }
    
    .flip-card {
        width: 280px;
        height: 350px;
    }
    
    .card-image {
        max-width: 250px;
    }
    
    .architecture-boxes {
        flex-direction: column;
    }
    
    .architecture-box {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .flip-card {
        width: 100%;
    }
}

/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.zoom-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
